package com.sand.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sand.entity.inventory.SelectInventory;
import com.sand.entity.inventory.inventory;

import java.util.List;

public interface InventoryService extends IService<inventory> {


    /**
     * 根据条件查询库存查询库存
     * @param selectInventory
     * @return
     */
    List<inventory> getList(SelectInventory selectInventory);

    /**
     * 查询某个商品拼的库存
     */
    inventory get(Integer shoppingid);

    /**
     * 新增库存
     */
    Integer add(inventory inventory);

    /**
     * 完成采购新增库存
     */
    Integer addlist(Integer purchaseid);

    /**
     * 根据合同扣减库存
     */
    Integer subtract(Integer contractid);
}
